package com.wlyuan.index.infrastructure.config;

import com.wlyuan.elasticsearch.builder.Specification;
import com.wlyuan.index.api.dto.order.OrderIndexFilterDTO;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.HashMap;
import java.util.Map;

/**
 * @author yuanjie
 */
@Data
@ConfigurationProperties(prefix = "index.order")
public class OrderIndexProperties {
    private Map<String, Specification> rules = new HashMap<>();
    private Map<String, OrderIndexFilterDTO> filters = new HashMap<>();
    private boolean enableReindexAll = true;
    private boolean disableBlockingRenew = true;
    private int blockingRenewSize = 1000;
}
